package cn.cvs.service;

import cn.cvs.pojo.Supplier;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface SupplierService {


    /*------*/
//添加供货商信息
    public int addSupplier(Supplier supplier);
    //删除供货商信息
    public int delSupplier(Integer id);
    //修改信息
    public int updSupplierById(Supplier supplier);
    //where+if查询
    public int getSupplierByWhere(String srCode, String name);
    //根据供货商编号和名称查询信息
    public List<Supplier> getSupplierByCodeAndName(String code, String name, Integer pageIndex, Integer pageSize);
    //根据id查询信息
    public Supplier getSupplierById(Integer id);
    //查询供货商信息
    public List<Supplier> getSupplierList();

}
